package com.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @Description:
 * @date 2021/4/18 11:06
 */
@Data
@ApiModel
public class ArticleInfoConfig implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "类型",required = true)
    private Integer type;

    @ApiModelProperty(value = "状态 1上架 0下架",required = true)
    @NotNull(message = "状态不能为空")
    private Integer state;

    @ApiModelProperty(value = "标题",required = true)
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "副标题",required = true)
    @NotBlank(message = "副标题不能为空")
    private String subTitle;

    @ApiModelProperty(value = "图片地址",required = true)
    @NotBlank(message = "图片地址不能为空")
    private String imgUrl;

    @ApiModelProperty(value = "详情，为html文本",required = true)
    @NotBlank(message = "详情不能为空")
    private String detail;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
